package FactoryMethod.java;

import FactoryMethod.factory.BaoMaFactory;
import FactoryMethod.factory.DAZCarFactory;

/**
 * @author feng
 * @Date 2021/10/14 20:49
 */
public class Test01 {
    public static void main(String[] args) {
        Car baoma = new BaoMaFactory().getCar();
        baoma.setName();
        Car DaZ = new DAZCarFactory().getCar();
        DaZ.setName();

    }
}
